package com.bwie.system.controller;

import com.bwie.common.domain.pojo.Log;
import com.bwie.common.domain.pojo.User;
import com.bwie.common.result.Result;
import com.bwie.system.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Gd
 * @package: com.bwie.system.controller
 * @Project: zg5_goods
 * @Name: LogController
 * @Date: 2024/4/29 17:36
 */
@RestController
public class LogController {

    @Autowired
    private LogService logService;

    /**
     * 添加日志
     * @param user
     * @return
     */
    @PostMapping("insertLog")
    public Result insertLog(@RequestBody User user){
        return logService.insertLog(user);
    }
}
